package com.yc.jdkProxyTool;

import com.yc.staticproxy.OrderBiz;
import com.yc.staticproxy.OrderBizImpl;

/**
 * @ClassName Test2
 * @since: 2023/8/1 19:44
 * @auth: kirito
 * @description:
 **/
public class Test2 {
    public static void main(String[] args) {
        //设置代理生成的字节码  保存到当前目录
//        System.getProperties().put()

        JdkProxyTool jdkProxyTool = new JdkProxyTool(new OrderBizImpl());
        OrderBiz ob = (OrderBiz)jdkProxyTool.createProxy();
        System.out.println("生成代理对象：" + ob.toString());
        ob.findOrder();
        ob.addOrder(1,100);
    }
}
